package com.lxs.mall.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
public class UserRegisterVo {
    @NotEmpty(message = "账号不能为空")
    @Length(min=3,max = 15,message = "账号必须为3到15位")
    private String username;
    @NotEmpty(message = "密码不能为空")
    @Length(min=3,max = 15,message = "密码必须为3到15位")
    private String password;
    @NotEmpty(message = "手机号不能位空")
    private String phone;
    @NotEmpty(message = "验证码不能为空")
    private String code;
}
